from django.test import TestCase

# Create your tests here.
# result = [lambda x: x + i for i in range(10)]
# 列表生成式 --> 快速的生成列表
# print(result)

PI = 3.1415926

list_b =[PI * x * x for x in range(1, 101)]
print(list_b)

# 等价于
list_c = []
for i in range(1,10):
    list_c.append(i*i)

print(list_c)